package com.example.project.dao;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteDatabase.CursorFactory;

public class SQLiteAlojamiento extends SQLiteOpenHelper {

	//TODO FK Horario, Direccion, TipoAlojamiento, Foto
	private final String CREATE = "CREATE TABLE alojamiento ( idComer integer primary key autoincrement, nombre TEXT, telefono TEXT,  descripcion TEXT)";

	public SQLiteAlojamiento(Context context, String name,
			CursorFactory factory, int version) {
		super(context, name, factory, version);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(CREATE);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}

	// Acabar con el servicio

	public void getAll() {

	}

	public void getOne() {

	}

	public void remove() {

	}

	public void update() {

	}

	public void insert() {

	}
}
